import Foundation

public func test(title: String, task: () -> ()) {
    let startTime = CFAbsoluteTimeGetCurrent()
    task()
    let endTime = CFAbsoluteTimeGetCurrent()
    print("\(title) 耗时：\((endTime-startTime)) 秒")
    print("----------------------------------------")
}
